<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>更新客户</title>
<script type="text/javascript">
	/**查找带回机构信息*/
	function lookUpNetsite() {
		$.pdialog.open('netsiteLookUp', 'organization', '网点信息', {
			width : 1000,
			height : 580,
			mask : true
		});
	}
	
	//图片上传的初始化
	$('#uploadify').uploadify({
		'uploader' : 'uploadify/scripts/uploadify.swf',
		'script' : 'picUploadify', //指定服务端处理类的入口
		'folder' : 'upload/image',
		'cancelImg' : 'uploadify/cancel.png',
		'fileDataName' : 'uploadify', //和input的name属性值保持一致就好，Struts2就能处理了   
		'queueID' : 'fileQueue',
		'auto' : true,//是否选取文件后自动上传   
		'multi' : false,//是否支持多文件上传
		'simUploadLimit' : 1,//每次最大上传文件数   
		'fileDesc' : '.jpg文件或.gif文件或.png文件',//上传文件类型说明
		'fileExt' : '*.jpg;*.gif;*.png',
		'wmode' : 'transparent', //隐藏进度条
		'displayData' : 'percentage',//有speed和percentage两种，一个显示速度，一个显示完成百分比    
		'onComplete' : function(event, queueID, fileObj, response, data) {
			$("#picPath").val(response);
			$("#imgpath").html("<img src='"+response+"' />");
		}
	});
</script>
</head>
<body>
	<div class="pageContent">
		<form class="pageForm required-validate" method="post" action="updateCourierAction.action" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<input type="hidden" name="rightId" value="${rightId}" /> <input name="id" value="<s:property value='#request.courier.id' />" type="hidden" />
			<div class="pageFormContent" layoutH="56">
				<table>
					<tr>
						<td>用户名</td>
						<td><input readonly="readonly" name="username" type="text" size="30" value="<s:property value='#request.courier.username'/>" /></td>
					</tr>
					<!--查找带回 -->
					<tr>
						<td>所属网点：</td>
						<td><input type="text" value="<s:property value='#request.courier.netSiteName'/>"  class="required" name="netSiteName" readonly="readonly" bringBackName="netSite.netSiteName" size="30" class="required textInput valid" />
						 <input type="hidden" name="netSiteId" bringBackName="netSite.netSiteId" /> 
						<input type="hidden" name="expressCompanyName" bringBackName="netSite.expressCompanyName" /> 
						 <a class="btnLook"	href="netsiteLookUp" lookupGroup="netSite"  width="1000" height="580" warn="请选择快递员" >查找带回</a>
						<!--  <a class="btnLook" href="javascript:void(0);" onclick="lookUpNetsite()">查找带回</a></td> -->
					</tr>

					<tr>
						<td>密码：</td>
						<td><input name="password" type="password" size="30" /></td>
					</tr>
					<tr>
						<td>电话：</td>
						<td><input name="mobile" type="text" size="30" value="<s:property value='#request.courier.mobile'/>" class="required textInput valid" /></td>
					</tr>
					 <tr>
						<td>真实姓名：</td>
						<td><input name="realname" type="text" size="30" value="<s:property value='#request.courier.realname'/>" class="required textInput valid" /></td>
					</tr> 
					
										<tr>
					<td>快递员头像：</td>
						<td><input type="file" name="uploadify" id="uploadify" /> <input id="picPath" type="hidden" name="courierPicture"  value="<s:property value='#request.courier.courierPicture'/>" />
					</tr>
					<tr>
						<td colspan="2">
							<div id="imgpath">
								<img src="<s:property value='#request.courier.courierPicture'/>">
							</div>
						</td>
					</tr>					
				
					<%-- <tr>
						<td>性别：</td>
						<td><s:if test="#request.courier.gender==1">
								<select name="gender" style="width: 120px">
									<option value="0">女</option>
									<option value="1" selected="selected">男</option>
								</select>
							</s:if> <s:elseif test="#request.courier.gender==0">
								<select name="gender" style="width: 120px">
									<option value="0" selected="selected">女</option>
									<option value="1">男</option>
								</select>
							</s:elseif></td>
					</tr>
					
					<tr>
						<td>快递员类别：</td>
						<td><s:if test="#request.courier.courierType==1">
								<select name="courierType" style="width: 120px">
									<option value="0">其他快递员</option>
									<option value="1" selected="selected">快递兔</option>
								</select>
							</s:if> <s:elseif test="#request.courier.courierType==0">
								<select name="courierType" style="width: 120px">
									<option value="0" selected="selected">其他快递员</option>
									<option value="1">快递兔</option>
								</select>
							</s:elseif></td>
					</tr>--%>
					
					<tr>
						<td>状态：</td>
						<td><select name="locked" style="width: 120px">
								<option value="0" <s:if test="#request.courier.locked==0">selected="selected"</s:if>>启用</option>
								<option value="1" <s:if test="#request.courier.locked==1">selected="selected"</s:if>>禁用</option>
							</select>
						</td>
					</tr>
					
					<%--<tr>
						<td>类型：</td>
						<td><s:if test="#request.courier.workType==0">
								<select name="workType" style="width: 120px">
									<option value="0" selected="selected">收件员</option>
									<option value="2">仓管员</option>
									<option value="1">直送员</option>
								</select>
							</s:if> <s:elseif test="#request.courier.workType==1">
								<select name="workType" style="width: 120px">
									<option value="0">收件员</option>
									<option value="2">仓管员</option>
									<option value="1" selected="selected">直送员</option>
								</select>
							</s:elseif>
							<s:elseif test="#request.courier.workType==2">
								<select name="workType" style="width: 120px">
									<option value="0">收件员</option>
									<option value="2" selected="selected">仓管员</option>
									<option value="1" >直送员</option>
								</select>
							</s:elseif>
							</td>
					</tr>
					
					<tr>
						<td>交通工具：</td>
						<td><s:if test="#request.courier.transport==0">
								<select name="transport" style="width: 120px">
									<option value="0" selected="selected">电动车</option>
									<option value="1">燃气车</option>
									<option value="2">摩托车</option>
									<option value="3">汽车</option>
									<option value="4">无交通工具</option>
								</select>
							</s:if> <s:elseif test="#request.courier.transport==1">
								<select name="transport" style="width: 120px">
									<option value="0">电动车</option>
									<option value="1" selected="selected">燃气车</option>
									<option value="2">摩托车</option>
									<option value="3">汽车</option>
									<option value="4">无交通工具</option>
								</select>
							</s:elseif>
							<s:elseif test="#request.courier.transport==2">
								<select name="transport" style="width: 120px">
									<option value="0">电动车</option>
									<option value="1">燃气车</option>
									<option value="2" selected="selected">摩托车</option>
									<option value="3">汽车</option>
									<option value="4">无交通工具</option>
								</select>
							</s:elseif>
							<s:elseif test="#request.courier.transport==3">
								<select name="transport" style="width: 120px">
									<option value="0">电动车</option>
									<option value="1">燃气车</option>
									<option value="2">摩托车</option>
									<option value="3" selected="selected">汽车</option>
									<option value="4">无交通工具</option>
								</select>
							</s:elseif>
							<s:elseif test="#request.courier.transport==4">
								<select name="transport" style="width: 120px">
									<option value="0">电动车</option>
									<option value="1">燃气车</option>
									<option value="2">摩托车</option>
									<option value="3">汽车</option>
									<option value="4" selected="selected">无交通工具</option>
								</select>
							</s:elseif>
							</td>
					</tr>
					
					<tr>
						<td>年龄：</td>
						<td><s:if test="#request.courier.age==0">
								<select name="age" style="width: 120px">
									<option value="0" selected="selected">20-30</option>
									<option value="1">30-35</option>
									<option value="2">35-45</option>
								</select>
							</s:if> <s:elseif test="#request.courier.age==1">
								<select name="age" style="width: 120px">
									<option value="0">20-30</option>
									<option value="1" selected="selected">30-35</option>
									<option value="2">35-45</option>
								</select>
							</s:elseif>
							<s:elseif test="#request.courier.age==2">
								<select name="age" style="width: 120px">
									<option value="0">20-30</option>
									<option value="1" >30-35</option>
									<option value="2" selected="selected">35-45</option>
								</select>
							</s:elseif></td>
					</tr>
					
					<tr>
						<td>学历：</td>
						<td><s:if test="#request.courier.educational==0">
								<select name="educational" style="width: 120px">
										<option value="0" selected="selected">高中以下</option>
									<option value="1">大专以下</option>
									<option value="2">大学及以上</option>
								</select>
							</s:if> <s:elseif test="#request.courier.educational==1">
								<select name="educational" style="width: 120px">
										<option value="0">高中以下</option>
										<option value="1" selected="selected">大专以下</option>
										<option value="2">大学及以上</option>
								</select>
							</s:elseif><s:elseif test="#request.courier.educational==2">
								<select name="educational" style="width: 120px">
										<option value="0">高中以下</option>
										<option value="1">大专以下</option>
										<option value="2" selected="selected">大学及以上</option>
								</select>
							</s:elseif></td>
					</tr>
					
					 <tr>
						<td>紧急联系人关系：</td>
						<td><input name="contactPerson" type="text" size="30" value="<s:property value='#request.courier.contactPerson'/>" class="required textInput valid" /></td>
					</tr> 
					
					 <tr>
						<td>紧急联系人联系方式：</td>
						<td><input name="contactPersonmobile" type="text" size="30" value="<s:property value='#request.courier.contactPersonmobile'/>" class="required textInput valid" /></td>
					</tr> 
					
					 <tr>
						<td>现住地址：</td>
						<td><input name="livingAddress" type="text" size="30" value="<s:property value='#request.courier.livingAddress'/>" class="required textInput valid" /></td>
					</tr> 
					
					 <tr>
						<td>身份证号：</td>
						<td><input name="idNumber" type="text" size="30" value="<s:property value='#request.courier.idNumber'/>" class="required textInput valid" /></td>
					</tr> 
					
					<tr>
						<td>身份真实性：</td>
						<td><s:if test="#request.courier.infoIsTrue==0">
								<select name="infoIsTrue" style="width: 120px">
											<option value="0" selected="selected">虚假</option>
											<option value="1">真实</option>
								</select>
							</s:if> <s:elseif test="#request.courier.infoIsTrue==1">
								<select name="infoIsTrue" style="width: 120px">
											<option value="0">虚假</option>
											<option value="1" selected="selected">真实</option>
								</select>
							</s:elseif></td>
					</tr>
					
					<tr>
						<td>从业经验：</td>
						<td><s:if test="#request.courier.wordExperience==0">
								<select name="wordExperience" style="width: 120px">
										<option value="0" selected="selected">一年以内</option>
										<option value="1">1一年以上3年以内</option>
										<option value="2">3年以上</option>
								</select>
							</s:if> <s:elseif test="#request.courier.wordExperience==1">
								<select name="wordExperience" style="width: 120px">
											<option value="0">一年以内</option>
								<option value="1" selected="selected">1一年以上3年以内</option>
								<option value="2">3年以上</option>
								</select>
							</s:elseif>
							<s:elseif test="#request.courier.wordExperience==2">
								<select name="wordExperience" style="width: 120px">
											<option value="0">一年以内</option>
								<option value="1">1一年以上3年以内</option>
								<option value="2" selected="selected">3年以上</option>
								</select>
							</s:elseif>
							</td>
					</tr>
					
					<tr>
						<td>原籍地址：</td>
						<td><input name="residenceAddress" type="text" size="30" value="<s:property value='#request.courier.residenceAddress'/>" class="required textInput valid" /></td>
					</tr> 
					
					<tr>
						<td>手机系统：</td>
						<td><s:if test="#request.courier.inphoneOS==0">
								<select name="inphoneOS" style="width: 120px">
									<option value="0" selected="selected">Android</option>
									<option value="1">IOS</option>
								</select>
							</s:if> <s:elseif test="#request.courier.inphoneOS==1">
								<select name="inphoneOS" style="width: 120px">
									<option value="0">Android</option>
									<option value="1" selected="selected">IOS</option>
								</select>
							</s:elseif></td>
					</tr>
					
					<tr>
						<td>现从事职业：</td>
						<td><input name="nowJob" type="text" size="30" value="<s:property value='#request.courier.nowJob'/>" class="required textInput valid" /></td>
					</tr> 
					
					<tr>
					<td>账户状态：</td>
						<td><s:if test="#request.courier.accountsStatus==0">
								<select name="accountsStatus" style="width: 120px">
									<option value="0" selected="selected">启用</option>
									<option value="1">禁用</option>
								</select>
							</s:if> <s:elseif test="#request.courier.accountsStatus==1">
								<select name="accountsStatus" style="width: 120px">
									<option value="0">启用</option>
									<option value="1" selected="selected">禁用</option>
								</select>
							</s:elseif></td>
					</tr>
					
					<tr>
					<td>犯罪记录：</td>
						<td><s:if test="#request.courier.criminalRecords==0">
								<select name="criminalRecords" style="width: 120px">
									<option value="0" selected="selected">无</option>
									<option value="1">有</option>
								</select>
							</s:if> <s:elseif test="#request.courier.criminalRecords==1">
								<select name="criminalRecords" style="width: 120px">
									<option value="0">无</option>
									<option value="1" selected="selected">有</option>
								</select>
							</s:elseif></td>
					</tr>
					<tr>
					<td>婚姻状态</td>
					<td>	
				<!-- 	未婚、已婚、离异、有小孩、无小孩（多选） -->
					未婚<input type="checkbox" name="isMarriage" value="0" />
					已婚<input type="checkbox" name="isMarriage" value="1" />
					离异<input type="checkbox" name="isMarriage" value="2" />
					有小孩<input type="checkbox" name="isMarriage" value="3" />
					无小孩<input type="checkbox" name="isMarriage" value="4" />
					 </td>
<!-- 						<td>账户审核</td>
						<td><select   name="accountsCheck" style="width: 120px">
								<option value="0">未通过</option>
								<option value="1">通过</option>
						</select></td>	 -->
					</tr> --%>
				</table>
				
				<table>
					<tr>
						<td>工作开始时间:</td>
						<td> <input disabled="disabled" type="text" size="5" value="<s:date name='#request.courier.workStartTime' format="HH:mm"/>">    修改为 </td>
						<td><input name="workStartTimeHour" type="text" min="1" max="24" size="5" class="required textInput valid" />点</td>
						<td><input name="workStartTimeMin" type="text" min="0" max="60" size="5" class="required textInput valid" />分</td>
					</tr>
					<tr>
						<td>工作结束时间 :</td>
						<td> <input  disabled="disabled" type="text" size="5" value="<s:date name='#request.courier.workEndTime' format="HH:mm"/>">    修改为 </td>
						<td><input name="workEndTimeHour" type="text" min="1" max="24" size="5" class="required textInput valid" />点</td>
						<td><input name="workEndTimeMin" type="text" min="0" max="60" size="5" class="required textInput valid" />分</td>
					</tr>
					</table>
			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">保存</button>
							</div>
						</div>
					</li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">取消</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</body>
</html>
